package com.yang.spring.events;

import org.springframework.context.ApplicationEvent;

/**
 * 自定义Spring事件
 */
public class CustomEvent extends ApplicationEvent {
    
    private String message;
    
    public CustomEvent(Object source, String message) {
        super(source);
        this.message = message;
    }
    
    public String getMessage() {
        return message;
    }
} 